package com.parking.renters.model.stallCall.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;

@Data
@ApiModel("出租客注册参数")
public class RegisterForm {

    @ApiModelProperty("出租客账号")
    private String rentersAccount;
    /**
     * 出租客密码
     */
    @ApiModelProperty("出租客密码")
    @Length(min = 6,max = 8,message = "密码长度错误6到8位")
    private String rentersPass;

    /**
     * 出租客电话
     */
    @ApiModelProperty("出租客电话")
    @Pattern(regexp="1[3-9][0-9]{9}",message = "手机格式错误")
    private String rentersInfoTel;

    /**
     * 验证码
     */
    @ApiModelProperty("验证码")
    private String code;

    /**
     * 小区id
     */
    @ApiModelProperty("小区id")
    private Integer certifiedInfoId;

    /**
     * 小区名字
     */
    @ApiModelProperty("小区id")
    private String certifiedInfoName;


}
